import http from "../../utils/requestAI";
// import type { addPrems } from "./employee_type";
import {type ExampleGenerate,type Data, type addPrems } from "./House_type";



//列表
export const getHouse=(params?:Data)=>{

  return  http.get<ExampleGenerate>('/house/list',params);

}

//删除
export const deleHouse=(id:number)=>{

    console.log('删除1111',id);

    return  http.delete(`/house/delete/${id}`);
  
}

export const deleHouseAll = (ids: number[]) => {
  console.log('批量删除执行', ids);
  return http.post(`/house/deleteAll`,ids);
}
export const addHouse= (data: addPrems) => {
  return http.post(`/house/add`, data);
}